package com.ruoyi.project.query.paeaDsCusvd4.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.query.paeaDsCusvd4.mapper.PaeaDsCusvd4Mapper;
import com.ruoyi.project.query.paeaDsCusvd4.domain.PaeaDsCusvd4;
import com.ruoyi.project.query.paeaDsCusvd4.service.IPaeaDsCusvd4Service;
import com.ruoyi.common.utils.text.Convert;

/**
 * 对公客户信息Service业务层处理
 *
 * @author gang.wei
 * @date 2020-04-07
 */
@Service
public class PaeaDsCusvd4ServiceImpl extends ServiceImpl<PaeaDsCusvd4Mapper, PaeaDsCusvd4> implements IPaeaDsCusvd4Service
{
    @Autowired
    private PaeaDsCusvd4Mapper paeaDsCusvd4Mapper;

    /**
     * 查询对公客户信息
     *
     * @param id 对公客户信息ID
     * @return 对公客户信息
     */
    @Override
    public PaeaDsCusvd4 selectPaeaDsCusvd4ById(String id)
    {
        return paeaDsCusvd4Mapper.selectPaeaDsCusvd4ById(id);
    }

    /**
     * 查询对公客户信息列表
     *
     * @param paeaDsCusvd4 对公客户信息
     * @return 对公客户信息
     */
    @Override
    public List<PaeaDsCusvd4> selectPaeaDsCusvd4List(PaeaDsCusvd4 paeaDsCusvd4)
    {
        return paeaDsCusvd4Mapper.selectPaeaDsCusvd4List(paeaDsCusvd4);
    }

    /**
     * 新增对公客户信息
     *
     * @param paeaDsCusvd4 对公客户信息
     * @return 结果
     */
    @Override
    public int insertPaeaDsCusvd4(PaeaDsCusvd4 paeaDsCusvd4)
    {
        return paeaDsCusvd4Mapper.insertPaeaDsCusvd4(paeaDsCusvd4);
    }

    /**
     * 修改对公客户信息
     *
     * @param paeaDsCusvd4 对公客户信息
     * @return 结果
     */
    @Override
    public int updatePaeaDsCusvd4(PaeaDsCusvd4 paeaDsCusvd4)
    {
        return paeaDsCusvd4Mapper.updatePaeaDsCusvd4(paeaDsCusvd4);
    }

    /**
     * 删除对公客户信息对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaDsCusvd4ByIds(String ids)
    {
        return paeaDsCusvd4Mapper.deletePaeaDsCusvd4ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除对公客户信息信息
     *
     * @param id 对公客户信息ID
     * @return 结果
     */
    @Override
    public int deletePaeaDsCusvd4ById(String id)
    {
        return paeaDsCusvd4Mapper.deletePaeaDsCusvd4ById(id);
    }
}
